/*
 * @Author: wmm834578987 53178191+wmm834578987@users.noreply.github.com
 * @Date: 2024-04-26 14:58:37
 * @LastEditors: 王明明834578987 10266004+wang-mingming-834578987@user.noreply.gitee.com
 * @LastEditTime: 2024-05-13 18:21:26
 * @FilePath: \imageManager\src\api\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import { get, post } from './request';
export default {
  getVerification: (param: { phone: string }) => get('applicationUser/getVerification', param), //获取验证码接口
  userLogin: (param: { phone: string; verifyCode: string | number }) =>
    post('applicationUser/userLogin', param), //注册登录
  userResumesProcess: (param: { resumesId: string | number }) =>
    get('applicationUser/userResumesProcess', param), //获取当前简历流程
  userResumesList: (param: { userId: number | string }) =>
    get('applicationUser/userResumesList', param), //获取用户投递简历列表
  userIndexStatus: (param: { userId: number | string }) =>
    get('applicationUser/userIndexStatus', param), //用户首页 展示状态
  saveUservolunteer: (param: any) => post('applicationUser/saveUserVolunteer', param), //志愿填写
  uploadAttachment: (param: any) => post('applicationUser/uploadAttachment', param), //上传用户简历附件 重新提交只更新
  uploadUserImage: (param: any) => post('applicationUser/uploadUserImage', param), //上传用户个人图片 重新提交只更新
  saveUserResumes: (param: any) => post('applicationUser/saveUserResumes', param), //移动端用户提交简历
  selectUniversityDetail: (param: any) => get('/config/selectUniversityDetail', param), //获取高校名单
  selectCommonConfigDetail: (param: any) => get('/config/selectCommonConfigDetail', param), //根据类型获取配置项
  selectCommonDictionary: (param: { type: number; parentId: number }) =>
    get('/config/selectCommonDictionary', param), //根据类型获取子父级关系
  selectTrainingNumberList: () => get('/applicationUser/selectTrainingNumberList', {}), //获取当前未开始的培训期数
  joinTrainingNumber: (param: {
    trainingNumberId: string | number;
    resumesId: string | number;
    taste: string;
    notEat: string;
    trainingUrl: string;
  }) => post('/applicationUser/joinTrainingNumber', param), //参培确认 填写培训期数
  uploadTrainingAgreement: (param: any) => post('/applicationUser/uploadTrainingAgreement', param), //上传用户培训协议
  uploadSignAgreement: (param: any) => post('/applicationUser/uploadSignAgreement', param), //上传用户培训协议
};
